package com.invengo.testrfid.app.dao;

import com.invengo.testrfid.app.dao.base.OperationDao;

public class QueryManager {

    private static QueryManager manager;

    private static OperationDao operation;

    private RfidCageQuery rfidCageQuery;

    public static QueryManager getManager() {

        if (manager == null) {
            manager = new QueryManager();
        }
        return manager;
    }

    public RfidCageQuery getRfidCageQuery() {

        if (rfidCageQuery == null) {
            rfidCageQuery = new RfidCageQuery(
                    OperationDao.getOperation().daoSession.getRfidCageBindDao());
        }
        return rfidCageQuery;
    }
}
